<div class="suppliers view">
    <h2 class="left"><?php __('Proveedor'); ?></h2>
    <div class="actions specific">
        <ul>
            <li><?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $supplier['Supplier']['id'])); ?> </li>
            <li><?php
            if($supplier['Supplier']['termination_date'] == NULL){
                echo $this->Html->link(__('Dar Baja', true), array('action' => 'baja', $supplier['Supplier']['id']), null, sprintf(__('Esta seguro que desea dar baja a # %s?', true), $supplier['Supplier']['name'])); 
            }else{
                echo $this->Html->link(__('Deshacer Baja', true), array('action' => 'deshacer_baja', $supplier['Supplier']['id']));
            }
            ?></li>
            <li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $supplier['Supplier']['id']), null, sprintf(__('Esta seguro que desea eliminar el proveedor # %s?', true), $supplier['Supplier']['name'])); ?> </li>
        </ul>
    </div>
    <br />
    <br />
    <br />
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt<?php if ($i % 2 == 0)
            echo $class; ?>><?php __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $supplier['Supplier']['id']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Nombre'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $supplier['Supplier']['name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Dueño'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $supplier['Supplier']['owner']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Direccion'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $supplier['Supplier']['address']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Correo'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $supplier['Supplier']['mail']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Teléfono'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $supplier['Supplier']['phone']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Celular'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $supplier['Supplier']['cellular']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Fecha de Baja'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php
                if ($supplier['Supplier']['termination_date'] != NULL) {
                    $fecha = date('d/m/Y', strtotime($supplier['Supplier']['termination_date']));
                    echo $fecha;
                }
                ?>
            &nbsp;
        </dd>
    </dl>
</div>